#include<stdio.h>
void print(unsigned int a)
{
	if(a>9)
	{
		print(a/10);
	}
	printf("%u ",a%10);
}

int main()
{
    unsigned int a;
    scanf("%u",&a);
	print(a);
	return 0;
}
